﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Agnes.MyDocsLib"
                    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
                    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
                    x:Name="MyDocsLibResource">
    <dxb:BarItemCollection x:Key="MyDocsLibBarItems">
        <dxb:BarButtonItem Command="local:NewSubCatalogCmd.Requery" Name="biNewSubCatalog" Content="新建目录" Glyph="..\Images\Folder.ico"/>
        <dxb:BarButtonItem Name="biDelDocs" Content="删除" Glyph="..\Images\Delete.ico" />
        <dxb:BarButtonItem Command="local:NewArticleCmd.Requery" Name="biNewDoc" Content="新建文章" Glyph="..\Images\NewDoc.ico" />
        <dxb:BarCheckItem  Name="biEditMode" Content="编辑模式" Glyph="..\Images\Delete.ico"  />
        <dxb:BarButtonItem Command="local:SaveDocCmd.Requery" Name="biSaveDoc" Content="保存文章" Glyph="..\Images\Delete.ico" />
        <dxb:BarButtonItem KeyGesture="F2" Command="local:RenameCmd.Requery"
                           Name="biRename"
                           Content="重命名" Glyph="..\Images\Delete.ico"/>
        <dxb:BarButtonItem Command="local:DeleteCatalogCmd.Requery"
                           Name="biDelCatalog"
                           Content="删除目录" Glyph="..\Images\Delete.ico" />
        <dxb:BarButtonItem Command="local:DeleteArticleCmd.Requery"
                           Name="biDelArticle"
                           Content="删除文章" Glyph="..\Images\Delete.ico" />
    </dxb:BarItemCollection>

    <dxr:RibbonPage x:Key="MyDocsLibRibbonPage" Caption="我的文档库">
        
        <dxr:RibbonPageGroup Caption="目录">
            <dxb:BarItemLink BarItemName="biNewSubCatalog" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biRename" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biDelCatalog" RibbonStyle="Large" />
        </dxr:RibbonPageGroup>
        
        <dxr:RibbonPageGroup Caption="文章操作">
            <dxb:BarCheckItemLink BarItemName="biEditMode" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biNewDoc" />
            <dxb:BarItemLink BarItemName="biDelDocs"  />
            <dxb:BarButtonItemLink BarItemName="biSaveDoc" />
            <dxb:BarButtonItemLink BarItemName="biDelArticle" />
        </dxr:RibbonPageGroup>
    </dxr:RibbonPage>
</ResourceDictionary>